home *** CD-ROM | disk | FTP | other *** search
Wrap
// Source Code generated by PatchMaker 1.0 // a sick idea by Paul Baxter #if TARGET_CPU_68K && !TARGET_RT_MAC_CFM #error Sorry Can't do that #endif #include <MixedMode.h> #include <Appearance.h> #include <SpeechSynthesis.h> #include <A4Stuff.h> // enums for routinedescriptor enum { upp_AppearanceDispatchProcInfo_0_0xFFFFFFFF = kPascalStackBased | RESULT_SIZE(kOneByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_1_0 = kPascalStackBased | RESULT_SIZE(kFourByteCode), upp_AppearanceDispatchProcInfo_2_1 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kTwoByteCode) | STACK_ROUTINE_PARAMETER(2,kTwoByteCode) | STACK_ROUTINE_PARAMETER(3,kOneByteCode), upp_AppearanceDispatchProcInfo_3_2 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kTwoByteCode) | STACK_ROUTINE_PARAMETER(2,kTwoByteCode) | STACK_ROUTINE_PARAMETER(3,kOneByteCode), upp_AppearanceDispatchProcInfo_4_3 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kTwoByteCode) | STACK_ROUTINE_PARAMETER(2,kTwoByteCode) | STACK_ROUTINE_PARAMETER(3,kOneByteCode), upp_AppearanceDispatchProcInfo_5_4 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kTwoByteCode) | STACK_ROUTINE_PARAMETER(3,kOneByteCode), upp_AppearanceDispatchProcInfo_6_5 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_7_6 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_8_7 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_9_8 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_10_9 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_11_0x0A = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_12_0x0B = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kOneByteCode), upp_AppearanceDispatchProcInfo_13_0x0C = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_14_0x0D = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_15_0x0E = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_16_0x0F = kPascalStackBased | RESULT_SIZE(kOneByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_17_0x10 = kPascalStackBased | RESULT_SIZE(kOneByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_18_0x11 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kOneByteCode), upp_AppearanceDispatchProcInfo_19_0x12 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kOneByteCode), upp_AppearanceDispatchProcInfo_20_0x13 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode), upp_AppearanceDispatchProcInfo_21_0x14 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kTwoByteCode) | STACK_ROUTINE_PARAMETER(3,kFourByteCode), upp_AppearanceDispatchProcInfo_22_0x15 = kPascalStackBased | RESULT_SIZE(kFourByteCode), upp_AppearanceDispatchProcInfo_23_0x16 = kPascalStackBased | RESULT_SIZE(kFourByteCode), upp_AppearanceDispatchProcInfo_24_0x18 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kTwoByteCode) | STACK_ROUTINE_PARAMETER(3,kFourByteCode), upp_AppearanceDispatchProcInfo_25_0x19 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode) | STACK_ROUTINE_PARAMETER(3,kTwoByteCode) | STACK_ROUTINE_PARAMETER(4,kFourByteCode) | STACK_ROUTINE_PARAMETER(5,kFourByteCode) | STACK_ROUTINE_PARAMETER(6,kFourByteCode), upp_AppearanceDispatchProcInfo_26_0x1A = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_27_0x1B = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kTwoByteCode), upp_AppearanceDispatchProcInfo_28_0x1C = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kTwoByteCode) | STACK_ROUTINE_PARAMETER(3,kFourByteCode), upp_AppearanceDispatchProcInfo_29_0x1D = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode) | STACK_ROUTINE_PARAMETER(3,kTwoByteCode) | STACK_ROUTINE_PARAMETER(4,kTwoByteCode) | STACK_ROUTINE_PARAMETER(5,kTwoByteCode) | STACK_ROUTINE_PARAMETER(6,kTwoByteCode) | STACK_ROUTINE_PARAMETER(7,kFourByteCode) | STACK_ROUTINE_PARAMETER(8,kFourByteCode), upp_AppearanceDispatchProcInfo_30_0x1E = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_31_0x1F = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_32_0x20 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kTwoByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode) | STACK_ROUTINE_PARAMETER(3,kFourByteCode), upp_AppearanceDispatchProcInfo_33_0x21 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kOneByteCode), upp_AppearanceDispatchProcInfo_34_0x22 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kFourByteCode) | STACK_ROUTINE_PARAMETER(3,kOneByteCode), upp_AppearanceDispatchProcInfo_35_0x23 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode) | STACK_ROUTINE_PARAMETER(2,kOneByteCode), upp_AppearanceDispatchProcInfo_36_0x24 = kPascalStackBased | RESULT_SIZE(kOneByteCode) | STACK_ROUTINE_PARAMETER(1,kTwoByteCode) | STACK_ROUTINE_PARAMETER(2,kOneByteCode), upp_AppearanceDispatchProcInfo_37_0x25 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_38_0x26 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_39_0x27 = kPascalStackBased | RESULT_SIZE(kFourByteCode) | STACK_ROUTINE_PARAMETER(1,kFourByteCode), upp_AppearanceDispatchProcInfo_40_0x28 = kPascalStackBased | RESULT_SIZE(kFourByteCode), upp_AppearanceDispatchProcInfo_41_0 = kPascalStackBased, uppPatcExtraInfo }; // Function Prototypes extern pascal Boolean my_AppearanceDispatch_0_0xFFFFFFFFPatch(long param1); extern pascal long my_AppearanceDispatch_1_0Patch(void); extern pascal long my_AppearanceDispatch_2_1Patch(short param1, short param2, Boolean param3); extern pascal long my_AppearanceDispatch_3_2Patch(short param1, short param2, Boolean param3); extern pascal long my_AppearanceDispatch_4_3Patch(short param1, short param2, Boolean param3); extern pascal long my_AppearanceDispatch_5_4Patch(long param1, short param2, Boolean param3); extern pascal long my_AppearanceDispatch_6_5Patch(long param1, long param2); extern pascal long my_AppearanceDispatch_7_6Patch(long param1, long param2); extern pascal long my_AppearanceDispatch_8_7Patch(long param1, long param2); extern pascal long my_AppearanceDispatch_9_8Patch(long param1, long param2); extern pascal long my_AppearanceDispatch_10_9Patch(long param1, long param2); extern pascal long my_AppearanceDispatch_11_0x0APatch(long param1, long param2); extern pascal long my_AppearanceDispatch_12_0x0BPatch(long param1, Boolean param2); extern pascal long my_AppearanceDispatch_13_0x0CPatch(long param1, long param2); extern pascal long my_AppearanceDispatch_14_0x0DPatch(long param1, long param2); extern pascal long my_AppearanceDispatch_15_0x0EPatch(long param1, long param2); extern pascal Boolean my_AppearanceDispatch_16_0x0FPatch(long param1); extern pascal Boolean my_AppearanceDispatch_17_0x10Patch(long param1); extern pascal long my_AppearanceDispatch_18_0x11Patch(long param1, Boolean param2); extern pascal long my_AppearanceDispatch_19_0x12Patch(Boolean param1); extern pascal long my_AppearanceDispatch_20_0x13Patch(long param1, long param2); extern pascal long my_AppearanceDispatch_21_0x14Patch(long param1, short param2, long param3); extern pascal long my_AppearanceDispatch_22_0x15Patch(void); extern pascal long my_AppearanceDispatch_23_0x16Patch(void); extern pascal long my_AppearanceDispatch_24_0x18Patch(long param1, short param2, long param3); extern pascal long my_AppearanceDispatch_25_0x19Patch(long param1, long param2, short param3, long param4, long param5, long param6); extern pascal long my_AppearanceDispatch_26_0x1APatch(long param1); extern pascal long my_AppearanceDispatch_27_0x1BPatch(long param1, short param2); extern pascal long my_AppearanceDispatch_28_0x1CPatch(long param1, short param2, long param3); extern pascal long my_AppearanceDispatch_29_0x1DPatch(long param1, long param2, short param3, short param4, short param5, short param6, long param7, long param8); extern pascal long my_AppearanceDispatch_30_0x1EPatch(long param1); extern pascal long my_AppearanceDispatch_31_0x1FPatch(long param1); extern pascal long my_AppearanceDispatch_32_0x20Patch(short param1, long param2, long param3); extern pascal long my_AppearanceDispatch_33_0x21Patch(long param1, Boolean param2); extern pascal long my_AppearanceDispatch_34_0x22Patch(long param1, long param2, Boolean param3); extern pascal long my_AppearanceDispatch_35_0x23Patch(long param1, Boolean param2); extern pascal Boolean my_AppearanceDispatch_36_0x24Patch(short param1, Boolean param2); extern pascal long my_AppearanceDispatch_37_0x25Patch(long param1); extern pascal long my_AppearanceDispatch_38_0x26Patch(long param1); extern pascal long my_AppearanceDispatch_39_0x27Patch(long param1); extern pascal long my_AppearanceDispatch_40_0x28Patch(void); extern pascal void my_AppearanceDispatch_41_0Patch(void); // Globals to hold original routine descriptors RoutineDescriptorPtr gOriginal_AppearanceDispatch_0_0xFFFFFFFF = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_1_0 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_2_1 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_3_2 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_4_3 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_5_4 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_6_5 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_7_6 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_8_7 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_9_8 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_10_9 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_11_0x0A = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_12_0x0B = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_13_0x0C = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_14_0x0D = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_15_0x0E = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_16_0x0F = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_17_0x10 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_18_0x11 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_19_0x12 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_20_0x13 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_21_0x14 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_22_0x15 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_23_0x16 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_24_0x18 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_25_0x19 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_26_0x1A = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_27_0x1B = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_28_0x1C = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_29_0x1D = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_30_0x1E = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_31_0x1F = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_32_0x20 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_33_0x21 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_34_0x22 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_35_0x23 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_36_0x24 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_37_0x25 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_38_0x26 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_39_0x27 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_40_0x28 = nil; RoutineDescriptorPtr gOriginal_AppearanceDispatch_41_0 = nil; // Tell MetroWerks the procInfo for main ProcInfoType __procinfo = kPascalStackBased; pascal void main(void) { RoutineDescriptorPtr originaldesc, newdesc, unImplimentedTrapAddr; UInt32 size; UInt16 index; THz theZone; // get globals EnterCodeResource(); // detach ourselves DetachResource(Get1Resource('INIT', 0)); // make sure we are in the system heap theZone = GetZone(); SetZone(SystemZone()); unImplimentedTrapAddr = NGetTrapAddress(_Unimplemented, (_Unimplemented & 0x0800) ? ToolTrap : OSTrap); originaldesc = NGetTrapAddress(_AppearanceDispatch, (_AppearanceDispatch & 0x0800) ? ToolTrap : OSTrap); if (originaldesc != unImplimentedTrapAddr) { if (originaldesc->goMixedModeTrap != _MixedModeMagic) { // Trap is 68K size = sizeof(RoutineDescriptor) + (sizeof(RoutineRecord) * 41); // allocate new descriptor newdesc = (RoutineDescriptorPtr) NewPtrSys(size); if (!newdesc) { Debugger(); return; } // set fields of routine decscriptor newdesc->goMixedModeTrap = _MixedModeMagic; newdesc->version = 7; newdesc->routineDescriptorFlags = 0; newdesc->reserved1 = 0; newdesc->reserved2 = 0; newdesc->selectorInfo = 0x88; newdesc->routineCount = 0x29; index = 0; gOriginal_AppearanceDispatch_0_0xFFFFFFFF = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_0_0xFFFFFFFF; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_0_0xFFFFFFFFPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0xFFFFFFFF; index = 1; gOriginal_AppearanceDispatch_1_0 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_1_0; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_1_0Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0; index = 2; gOriginal_AppearanceDispatch_2_1 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_2_1; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_2_1Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 1; index = 3; gOriginal_AppearanceDispatch_3_2 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_3_2; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_3_2Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 2; index = 4; gOriginal_AppearanceDispatch_4_3 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_4_3; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_4_3Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 3; index = 5; gOriginal_AppearanceDispatch_5_4 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_5_4; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_5_4Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 4; index = 6; gOriginal_AppearanceDispatch_6_5 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_6_5; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_6_5Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 5; index = 7; gOriginal_AppearanceDispatch_7_6 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_7_6; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_7_6Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 6; index = 8; gOriginal_AppearanceDispatch_8_7 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_8_7; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_8_7Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 7; index = 9; gOriginal_AppearanceDispatch_9_8 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_9_8; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_9_8Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 8; index = 10; gOriginal_AppearanceDispatch_10_9 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_10_9; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_10_9Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 9; index = 11; gOriginal_AppearanceDispatch_11_0x0A = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_11_0x0A; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_11_0x0APatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x0A; index = 12; gOriginal_AppearanceDispatch_12_0x0B = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_12_0x0B; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_12_0x0BPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x0B; index = 13; gOriginal_AppearanceDispatch_13_0x0C = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_13_0x0C; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_13_0x0CPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x0C; index = 14; gOriginal_AppearanceDispatch_14_0x0D = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_14_0x0D; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_14_0x0DPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x0D; index = 15; gOriginal_AppearanceDispatch_15_0x0E = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_15_0x0E; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_15_0x0EPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x0E; index = 16; gOriginal_AppearanceDispatch_16_0x0F = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_16_0x0F; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_16_0x0FPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x0F; index = 17; gOriginal_AppearanceDispatch_17_0x10 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_17_0x10; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_17_0x10Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x10; index = 18; gOriginal_AppearanceDispatch_18_0x11 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_18_0x11; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_18_0x11Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x11; index = 19; gOriginal_AppearanceDispatch_19_0x12 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_19_0x12; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_19_0x12Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x12; index = 20; gOriginal_AppearanceDispatch_20_0x13 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_20_0x13; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_20_0x13Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x13; index = 21; gOriginal_AppearanceDispatch_21_0x14 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_21_0x14; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_21_0x14Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x14; index = 22; gOriginal_AppearanceDispatch_22_0x15 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_22_0x15; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_22_0x15Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x15; index = 23; gOriginal_AppearanceDispatch_23_0x16 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_23_0x16; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_23_0x16Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x16; index = 24; gOriginal_AppearanceDispatch_24_0x18 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_24_0x18; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_24_0x18Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x18; index = 25; gOriginal_AppearanceDispatch_25_0x19 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_25_0x19; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_25_0x19Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x19; index = 26; gOriginal_AppearanceDispatch_26_0x1A = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_26_0x1A; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_26_0x1APatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x1A; index = 27; gOriginal_AppearanceDispatch_27_0x1B = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_27_0x1B; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_27_0x1BPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x1B; index = 28; gOriginal_AppearanceDispatch_28_0x1C = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_28_0x1C; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_28_0x1CPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x1C; index = 29; gOriginal_AppearanceDispatch_29_0x1D = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_29_0x1D; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_29_0x1DPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x1D; index = 30; gOriginal_AppearanceDispatch_30_0x1E = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_30_0x1E; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_30_0x1EPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x1E; index = 31; gOriginal_AppearanceDispatch_31_0x1F = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_31_0x1F; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_31_0x1FPatch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x1F; index = 32; gOriginal_AppearanceDispatch_32_0x20 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_32_0x20; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_32_0x20Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x20; index = 33; gOriginal_AppearanceDispatch_33_0x21 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_33_0x21; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_33_0x21Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x21; index = 34; gOriginal_AppearanceDispatch_34_0x22 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_34_0x22; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_34_0x22Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x22; index = 35; gOriginal_AppearanceDispatch_35_0x23 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_35_0x23; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_35_0x23Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x23; index = 36; gOriginal_AppearanceDispatch_36_0x24 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_36_0x24; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_36_0x24Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x24; index = 37; gOriginal_AppearanceDispatch_37_0x25 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_37_0x25; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_37_0x25Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x25; index = 38; gOriginal_AppearanceDispatch_38_0x26 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_38_0x26; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_38_0x26Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x26; index = 39; gOriginal_AppearanceDispatch_39_0x27 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_39_0x27; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_39_0x27Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x27; index = 40; gOriginal_AppearanceDispatch_40_0x28 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_40_0x28; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0x0C; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_40_0x28Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0x28; index = 41; gOriginal_AppearanceDispatch_41_0 = originaldesc; newdesc->routineRecords[index].procInfo = upp_AppearanceDispatchProcInfo_41_0; newdesc->routineRecords[index].reserved1 = 0; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); newdesc->routineRecords[index].routineFlags = 0; newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_41_0Patch; newdesc->routineRecords[index].reserved2 = 0; newdesc->routineRecords[index].selector = 0; } else { // Trap is PPC size = sizeof(RoutineDescriptor) + (sizeof(RoutineRecord) * originaldesc->routineCount); newdesc = (RoutineDescriptorPtr) NewPtrSys(size); if (!newdesc) { DebugStr("\pFailed to allocate RoutineDescriptor"); return; } BlockMoveData(originaldesc, newdesc, size); for (index = 0; index <= newdesc->routineCount; index++) { if ((originaldesc->routineRecords[index].selector == 0xFFFFFFFF)) { gOriginal_AppearanceDispatch_0_0xFFFFFFFF= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_0_0xFFFFFFFF, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_0_0xFFFFFFFFPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0) && (originaldesc->routineRecords[index].ISA == 1) && (originaldesc->routineRecords[index].procInfo == upp_AppearanceDispatchProcInfo_1_0)) { gOriginal_AppearanceDispatch_1_0= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_1_0, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_1_0Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 1)) { gOriginal_AppearanceDispatch_2_1= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_2_1, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_2_1Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 2)) { gOriginal_AppearanceDispatch_3_2= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_3_2, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_3_2Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 3)) { gOriginal_AppearanceDispatch_4_3= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_4_3, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_4_3Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 4)) { gOriginal_AppearanceDispatch_5_4= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_5_4, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_5_4Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 5)) { gOriginal_AppearanceDispatch_6_5= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_6_5, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_6_5Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 6)) { gOriginal_AppearanceDispatch_7_6= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_7_6, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_7_6Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 7)) { gOriginal_AppearanceDispatch_8_7= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_8_7, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_8_7Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 8)) { gOriginal_AppearanceDispatch_9_8= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_9_8, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_9_8Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 9)) { gOriginal_AppearanceDispatch_10_9= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_10_9, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_10_9Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x0A)) { gOriginal_AppearanceDispatch_11_0x0A= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_11_0x0A, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_11_0x0APatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x0B)) { gOriginal_AppearanceDispatch_12_0x0B= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_12_0x0B, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_12_0x0BPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x0C)) { gOriginal_AppearanceDispatch_13_0x0C= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_13_0x0C, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_13_0x0CPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x0D)) { gOriginal_AppearanceDispatch_14_0x0D= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_14_0x0D, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_14_0x0DPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x0E)) { gOriginal_AppearanceDispatch_15_0x0E= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_15_0x0E, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_15_0x0EPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x0F)) { gOriginal_AppearanceDispatch_16_0x0F= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_16_0x0F, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_16_0x0FPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x10)) { gOriginal_AppearanceDispatch_17_0x10= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_17_0x10, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_17_0x10Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x11)) { gOriginal_AppearanceDispatch_18_0x11= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_18_0x11, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_18_0x11Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x12)) { gOriginal_AppearanceDispatch_19_0x12= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_19_0x12, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_19_0x12Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x13)) { gOriginal_AppearanceDispatch_20_0x13= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_20_0x13, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_20_0x13Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x14)) { gOriginal_AppearanceDispatch_21_0x14= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_21_0x14, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_21_0x14Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x15)) { gOriginal_AppearanceDispatch_22_0x15= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_22_0x15, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_22_0x15Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x16)) { gOriginal_AppearanceDispatch_23_0x16= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_23_0x16, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_23_0x16Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x18)) { gOriginal_AppearanceDispatch_24_0x18= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_24_0x18, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_24_0x18Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x19)) { gOriginal_AppearanceDispatch_25_0x19= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_25_0x19, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_25_0x19Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x1A)) { gOriginal_AppearanceDispatch_26_0x1A= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_26_0x1A, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_26_0x1APatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x1B)) { gOriginal_AppearanceDispatch_27_0x1B= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_27_0x1B, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_27_0x1BPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x1C)) { gOriginal_AppearanceDispatch_28_0x1C= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_28_0x1C, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_28_0x1CPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x1D)) { gOriginal_AppearanceDispatch_29_0x1D= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_29_0x1D, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_29_0x1DPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x1E)) { gOriginal_AppearanceDispatch_30_0x1E= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_30_0x1E, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_30_0x1EPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x1F)) { gOriginal_AppearanceDispatch_31_0x1F= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_31_0x1F, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_31_0x1FPatch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x20)) { gOriginal_AppearanceDispatch_32_0x20= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_32_0x20, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_32_0x20Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x21)) { gOriginal_AppearanceDispatch_33_0x21= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_33_0x21, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_33_0x21Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x22)) { gOriginal_AppearanceDispatch_34_0x22= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_34_0x22, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_34_0x22Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x23)) { gOriginal_AppearanceDispatch_35_0x23= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_35_0x23, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_35_0x23Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x24)) { gOriginal_AppearanceDispatch_36_0x24= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_36_0x24, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_36_0x24Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x25)) { gOriginal_AppearanceDispatch_37_0x25= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_37_0x25, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_37_0x25Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x26)) { gOriginal_AppearanceDispatch_38_0x26= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_38_0x26, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_38_0x26Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x27)) { gOriginal_AppearanceDispatch_39_0x27= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_39_0x27, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_39_0x27Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0x28)) { gOriginal_AppearanceDispatch_40_0x28= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_40_0x28, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_40_0x28Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } if ((originaldesc->routineRecords[index].selector == 0) && (originaldesc->routineRecords[index].ISA == 0) && (originaldesc->routineRecords[index].procInfo == upp_AppearanceDispatchProcInfo_41_0)) { gOriginal_AppearanceDispatch_41_0= NewRoutineDescriptor(originaldesc->routineRecords[index].procDescriptor, upp_AppearanceDispatchProcInfo_41_0, originaldesc->routineRecords[index].ISA); newdesc->routineRecords[index].procDescriptor = (ProcPtr)my_AppearanceDispatch_41_0Patch; newdesc->routineRecords[index].ISA = GetCurrentArchitecture(); continue; } } } NSetTrapAddress((UniversalProcPtr) newdesc, _AppearanceDispatch, (_AppearanceDispatch & 0x0800) ? ToolTrap : OSTrap); } // restore to original heap SetZone(theZone); // restore globals ExitCodeResource(); } pascal Boolean my_AppearanceDispatch_0_0xFFFFFFFFPatch(long param1) { Boolean result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_0_0xFFFFFFFF, upp_AppearanceDispatchProcInfo_0_0xFFFFFFFF, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_1_0Patch(void) { long result; // Get globals EnterCodeResource(); result = CALL_ZERO_PARAMETER_UPP( gOriginal_AppearanceDispatch_1_0, upp_AppearanceDispatchProcInfo_1_0); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_2_1Patch(short param1, short param2, Boolean param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_2_1, upp_AppearanceDispatchProcInfo_2_1, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_3_2Patch(short param1, short param2, Boolean param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_3_2, upp_AppearanceDispatchProcInfo_3_2, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_4_3Patch(short param1, short param2, Boolean param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_4_3, upp_AppearanceDispatchProcInfo_4_3, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_5_4Patch(long param1, short param2, Boolean param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_5_4, upp_AppearanceDispatchProcInfo_5_4, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_6_5Patch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_6_5, upp_AppearanceDispatchProcInfo_6_5, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_7_6Patch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_7_6, upp_AppearanceDispatchProcInfo_7_6, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_8_7Patch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_8_7, upp_AppearanceDispatchProcInfo_8_7, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_9_8Patch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_9_8, upp_AppearanceDispatchProcInfo_9_8, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_10_9Patch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_10_9, upp_AppearanceDispatchProcInfo_10_9, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_11_0x0APatch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_11_0x0A, upp_AppearanceDispatchProcInfo_11_0x0A, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_12_0x0BPatch(long param1, Boolean param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_12_0x0B, upp_AppearanceDispatchProcInfo_12_0x0B, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_13_0x0CPatch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_13_0x0C, upp_AppearanceDispatchProcInfo_13_0x0C, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_14_0x0DPatch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_14_0x0D, upp_AppearanceDispatchProcInfo_14_0x0D, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_15_0x0EPatch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_15_0x0E, upp_AppearanceDispatchProcInfo_15_0x0E, param1, param2); // Release globals ExitCodeResource(); return result; } pascal Boolean my_AppearanceDispatch_16_0x0FPatch(long param1) { Boolean result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_16_0x0F, upp_AppearanceDispatchProcInfo_16_0x0F, param1); // Release globals ExitCodeResource(); return result; } pascal Boolean my_AppearanceDispatch_17_0x10Patch(long param1) { Boolean result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_17_0x10, upp_AppearanceDispatchProcInfo_17_0x10, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_18_0x11Patch(long param1, Boolean param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_18_0x11, upp_AppearanceDispatchProcInfo_18_0x11, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_19_0x12Patch(Boolean param1) { long result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_19_0x12, upp_AppearanceDispatchProcInfo_19_0x12, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_20_0x13Patch(long param1, long param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_20_0x13, upp_AppearanceDispatchProcInfo_20_0x13, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_21_0x14Patch(long param1, short param2, long param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_21_0x14, upp_AppearanceDispatchProcInfo_21_0x14, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_22_0x15Patch(void) { long result; // Get globals EnterCodeResource(); result = CALL_ZERO_PARAMETER_UPP( gOriginal_AppearanceDispatch_22_0x15, upp_AppearanceDispatchProcInfo_22_0x15); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_23_0x16Patch(void) { long result; // Get globals EnterCodeResource(); result = CALL_ZERO_PARAMETER_UPP( gOriginal_AppearanceDispatch_23_0x16, upp_AppearanceDispatchProcInfo_23_0x16); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_24_0x18Patch(long param1, short param2, long param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_24_0x18, upp_AppearanceDispatchProcInfo_24_0x18, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_25_0x19Patch(long param1, long param2, short param3, long param4, long param5, long param6) { long result; // Get globals EnterCodeResource(); result = CALL_SIX_PARAMETER_UPP( gOriginal_AppearanceDispatch_25_0x19, upp_AppearanceDispatchProcInfo_25_0x19, param1, param2, param3, param4, param5, param6); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_26_0x1APatch(long param1) { long result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_26_0x1A, upp_AppearanceDispatchProcInfo_26_0x1A, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_27_0x1BPatch(long param1, short param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_27_0x1B, upp_AppearanceDispatchProcInfo_27_0x1B, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_28_0x1CPatch(long param1, short param2, long param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_28_0x1C, upp_AppearanceDispatchProcInfo_28_0x1C, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_29_0x1DPatch(long param1, long param2, short param3, short param4, short param5, short param6, long param7, long param8) { long result; // Get globals EnterCodeResource(); result = CALL_EIGHT_PARAMETER_UPP( gOriginal_AppearanceDispatch_29_0x1D, upp_AppearanceDispatchProcInfo_29_0x1D, param1, param2, param3, param4, param5, param6, param7, param8); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_30_0x1EPatch(long param1) { long result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_30_0x1E, upp_AppearanceDispatchProcInfo_30_0x1E, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_31_0x1FPatch(long param1) { long result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_31_0x1F, upp_AppearanceDispatchProcInfo_31_0x1F, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_32_0x20Patch(short param1, long param2, long param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_32_0x20, upp_AppearanceDispatchProcInfo_32_0x20, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_33_0x21Patch(long param1, Boolean param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_33_0x21, upp_AppearanceDispatchProcInfo_33_0x21, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_34_0x22Patch(long param1, long param2, Boolean param3) { long result; // Get globals EnterCodeResource(); result = CALL_THREE_PARAMETER_UPP( gOriginal_AppearanceDispatch_34_0x22, upp_AppearanceDispatchProcInfo_34_0x22, param1, param2, param3); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_35_0x23Patch(long param1, Boolean param2) { long result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_35_0x23, upp_AppearanceDispatchProcInfo_35_0x23, param1, param2); // Release globals ExitCodeResource(); return result; } pascal Boolean my_AppearanceDispatch_36_0x24Patch(short param1, Boolean param2) { Boolean result; // Get globals EnterCodeResource(); result = CALL_TWO_PARAMETER_UPP( gOriginal_AppearanceDispatch_36_0x24, upp_AppearanceDispatchProcInfo_36_0x24, param1, param2); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_37_0x25Patch(long param1) { long result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_37_0x25, upp_AppearanceDispatchProcInfo_37_0x25, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_38_0x26Patch(long param1) { long result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_38_0x26, upp_AppearanceDispatchProcInfo_38_0x26, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_39_0x27Patch(long param1) { long result; // Get globals EnterCodeResource(); result = CALL_ONE_PARAMETER_UPP( gOriginal_AppearanceDispatch_39_0x27, upp_AppearanceDispatchProcInfo_39_0x27, param1); // Release globals ExitCodeResource(); return result; } pascal long my_AppearanceDispatch_40_0x28Patch(void) { long result; // Get globals EnterCodeResource(); result = CALL_ZERO_PARAMETER_UPP( gOriginal_AppearanceDispatch_40_0x28, upp_AppearanceDispatchProcInfo_40_0x28); // Release globals ExitCodeResource(); return result; } pascal void my_AppearanceDispatch_41_0Patch(void) { // Get globals EnterCodeResource(); CALL_ZERO_PARAMETER_UPP( gOriginal_AppearanceDispatch_41_0, upp_AppearanceDispatchProcInfo_41_0); // Release globals ExitCodeResource(); }